package com.lsm.sm.entity;

/**
 * UserStatus entity. @author MyEclipse Persistence Tools
 */

public class UserStatus extends Model {
	private static final long serialVersionUID = -3727900680856079011L;
	private Integer user;
	private String doing;
	private Short online;
	private Integer hitCount;
	private Long loginTime;
	private Long registeTime;
	private String host;
	private Long offTime;

	// Constructors

	/** default constructor */
	public UserStatus() {
	}


	// Property accessors

	public Integer getUser() {
		return this.user;
	}

	public void setUser(Integer user) {
		this.user = user;
	}

	public String getDoing() {
		return this.doing;
	}

	public void setDoing(String doing) {
		this.doing = doing;
	}

	public Short getOnline() {
		return this.online;
	}

	public void setOnline(Short online) {
		this.online = online;
	}

	public Integer getHitCount() {
		return this.hitCount;
	}

	public void setHitCount(Integer hitCount) {
		this.hitCount = hitCount;
	}

	public Long getLoginTime() {
		return this.loginTime;
	}

	public void setLoginTime(Long loginTime) {
		this.loginTime = loginTime;
	}

	public Long getRegisteTime() {
		return this.registeTime;
	}

	public void setRegisteTime(Long registeTime) {
		this.registeTime = registeTime;
	}

	public String getHost() {
		return this.host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public Long getOffTime() {
		return this.offTime;
	}

	public void setOffTime(Long offTime) {
		this.offTime = offTime;
	}

	@Override
	public int hashCode() {
		return id;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		UserStatus other = (UserStatus) obj;
		return id == other.id;
	}
}